import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Post from '@/components/index/post/Post'
import Lun from '@/components/index/layout/lun'
import Show from '@/components/index/post/show'
import Login from '@/components/index/user/login'
import Register from '@/components/index/user/register'
import Create from '@/components/admin/post/create'
import UserInfo from '@/components/index/user/userInfo'
import Test from '@/components/index/test/test'

import Admin from '@/components/admin/user/login'

Vue.use(Router)

export default new Router({

    routes: [
        { path: '/za',   name: 'HelloWorld',component: HelloWorld},

        {path: '/',   name: 'post',component: Post},

        {path: '/p/:page.html',   name: 'post_page',component: Post},

        {path: '/post/:id.html',   name: 'show',component: Show},

        {path: '/lun',   name: 'lun',component: Lun},

        {path: '/login',   name: 'login',component: Login},

        {path: '/register',   name: 'register',component: Register},

        {path: '/create',   name: 'create',component: Create},

        {path: '/test',   name: 'create',component: Test},

        {path: '/user/:id.java',   name: 'userInfo',component: UserInfo},

        {path: '/admin',   name: 'admin',component: Admin},

        {path: '/admin/post',   name: 'adminPost',component: Create},
        
    ]
})
